package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.StudentBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IStudentMapper extends BaseMapper<StudentBean> {

    public IPage<StudentBean> findByItem(Page pg, @Param("name") String name,
                                         @Param("className") String className,
                                         @Param("address") String roomAddress);


    public StudentBean findById(int id);

    public List<StudentBean> findByRoom(int roomId);
}
